import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'mdi:c-brackets-outline',
      order: 30,
      title: '开发工具',
    },
    name: 'Develop',
    path: '/develop',
    children: [
      {
        name: 'DevelopFormGen',
        path: '/develop/form-gen',
        component: () => import('#/views/develop/form-gen/index.vue'),
        meta: {
          icon: 'lucide:form-input',
          title: '表单构建',
        },
      },
      {
        name: 'DevelopCodeGen',
        path: '/develop/code-gen',
        component: () => import('#/views/develop/code-gen/index.vue'),
        meta: {
          icon: 'lucide:code',
          title: '代码生成',
        },
      },
    ],
  },
];

export default routes;
